using Vin.Tool.Attributes;

namespace Vin.Extension.Email.Options;

[Option("VinEmail")]
public class VinEmailOption
{
    /// <summary>
    /// 事务主机的名称或IP地址
    /// </summary>
    public string? Host { get; set; }

    /// <summary>
    /// 事务主机的端口
    /// </summary>
    public int? Port { get; set; }

    /// <summary>
    /// 发送者的邮箱地址
    /// </summary>
    public string Sender { get; set; } = null!;

    /// <summary>
    /// 发送者的凭证
    /// </summary>
    public string SenderPwd { get; set; } = null!;
    
    /// <summary>
    /// 发送者的名称
    /// </summary>
    public string SenderName { get; set; } = string.Empty;
    
    /// <summary>
    /// 是否启用SSL
    /// </summary>
    public bool EnableSsl { get; set; } = true;
}